using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public class _Transaction
{
    public _Transaction()
    {
        // Default Constructor
    }

	public _Transaction(string confirmationNum)
	{
        // Custom Constructor used to populate data from the database.
        WebServiceApplication.WebService webService = new WebServiceApplication.WebService();
        _Transaction data = webService.getTransaction(confirmationNum);
        if (data != null)
        {
            this.transactionOwner = data.transactionOwner;
            this.delivered = data.delivered;
            this.ticketList = data.ticketList;
            this.confirmationNum = data.confirmationNum;
            this.purchaseDate = data.purchaseDate;
        }
	}
	
	// Variables
    public _User transactionOwner { get; set; }
	public bool delivered { get; set; }
    public List<_Ticket> ticketList { get; set; }
    public string confirmationNum { get; set; }
    public DateTime purchaseDate { get; set; }
}